package xin.yangshuai.forest01.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xin.yangshuai.common01.entity.User;
import xin.yangshuai.forest01.service.MyService;

/**
 * IndexController
 *
 * @author shuai
 * @date 2024/7/17
 */
@RestController
public class IndexController {

    @Autowired
    private MyService myService;

    @RequestMapping("configInfo")
    public String configInfo() {
        myService.configInfo();
        return "hello world !";
    }

    @RequestMapping("info")
    public String info() {
        return "hello world !";
    }

    @RequestMapping("test")
    public String test() {
        String test = myService.test();
        return test;
    }

    @RequestMapping("test1")
    public User test1() {
        User user = myService.test1();
        return user;
    }

    @RequestMapping("test2")
    public String test2() {
        String test = myService.test2();
        return test;
    }

    @RequestMapping("test3")
    public String test3() {
        String test = myService.test3();
        return test;
    }

    @RequestMapping("test4")
    public String test4() {
        String test = myService.test4();
        return test;
    }

    @RequestMapping("test5")
    public String test5() {
        String test = myService.test5();
        return test;
    }

    @RequestMapping("test6")
    public String test6() {
        String test = myService.test6();
        return test;
    }

    @RequestMapping("test7")
    public String test7() {
        String test = myService.test7();
        return test;
    }

    @RequestMapping("test8")
    public String test8() {
        String test = myService.test8();
        return test;
    }

    @RequestMapping("test9")
    public String test9() {
        String test = myService.test9();
        return test;
    }

    @RequestMapping("test10")
    public String test10() {
        String test = myService.test10();
        return test;
    }

    @RequestMapping("test11")
    public String test11() {
        String test = myService.test11();
        return test;
    }
}
